import 'package:changxindianzishangwu/else/lib/ui/contacts_page.dart';
import 'package:changxindianzishangwu/pages/contacts/search_userid_page.dart';
import 'package:changxindianzishangwu/pages/home_page.dart';
import 'package:changxindianzishangwu/pages/login/country_phone_page.dart';
import 'package:changxindianzishangwu/pages/login/get_message_page.dart';
import 'package:changxindianzishangwu/pages/login/login_init_page.dart';
import 'package:changxindianzishangwu/pages/login/password_login_page.dart';
import 'package:changxindianzishangwu/pages/login/serach_country_page.dart';
import 'package:changxindianzishangwu/pages/my/set_nickname_page.dart';
import 'package:changxindianzishangwu/pages/my/user_info_page.dart';
import 'package:changxindianzishangwu/widget/web_view.dart';
import 'package:get/get.dart';
import 'package:get/get_navigation/src/routes/get_route.dart';

class Routers {
  static List<GetPage> page = [
    GetPage(name: "/loginInit", page: () => LoginInitPage()),
    GetPage(name: "/getMessagePage", page: () => GetMessagePage()),
    GetPage(name: "/passwordLoginPage", page: () => PasswordLoginPage()),
    GetPage(name: "/countryPhonePage", page: () => CountryPhonePage()),
    // GetPage(name: "/test", page: () => Test()),
    // GetPage(name: "/searchCountryPage", page: () => SearchCountryPage()),
    GetPage(name: "/homePage", page: () => HomePage()),
    GetPage(name: "/userInfoPage", page: () => UserInfoPage()),
    GetPage(name: "/setNicknamePage", page: () => SetNicknamePage()),
    //网页
    GetPage(name: "/webViewExample", page: () => WebViewExample()),
    GetPage(name: "/contactsPage", page: () => ContactsPage()),
    GetPage(name: "/searchUserIdPage", page: () => SearchUserIdPage()),
  ];

  // static routers(RouteSettings settings) {
  //   print(1);
  //   switch (settings.name) {
  //     case "/loginInit":
  //       return GetPageRoute(page: () => LoginInitPage());
  //     case "initApp":
  //       return MaterialPageRoute(builder: (context) {
  //         return InitAppPage();
  //       });
  //     case "load":
  //       return MaterialPageRoute(builder: (context) {
  //         return Loding();
  //       });
  //     case "phoneMessageLogin":
  //       return MaterialPageRoute(builder: (context) {
  //         return PhoneMessageLogin();
  //       });
  //     case "getMessagePage":
  //       return MaterialPageRoute(builder: (context) {
  //         return GetMessagePage(phone: settings.arguments);
  //       });
  //     case "passwordLoginPage":
  //       return MaterialPageRoute(builder: (context) {
  //         return PasswordLoginPage();
  //       });
  //     case "home":
  //       return MaterialPageRoute(builder: (context) {
  //         return HomePage();
  //       });
  //   }
  // }
}
